{extend name="$base" /}
{block name="resources"}
<link rel="stylesheet" type="text/css" href="WAP_CSS/member_index.css">
<link rel="stylesheet" href="WAP_CSS/index.css"/>
<style type="text/css">
	ul,li{
		list-style: none;
	}
	.scroll-up .password-div input{
		width: 1px;
		height: 1px;
		opacity: 0;
		border: 0;
	}
	.scroll-up .password-lable{
		height: 30px;
		clear: both;
	}
	.scroll-up .password-lable li{
		float: left;
		width: 30px;
		height: 30px;
		line-height: 30px;
		text-align: center;
		border: 1px solid #dedede;
		margin-left: -1px;
	}

</style>

{/block}
{block name="head" }{/block}
{block name="main" }
{php}
	$member_detail 	   = api('System.Member.memberInfo');
	$member_info  	   = $member_detail['data'];
	
	// 会员账户信息
	$member_account = api("System.Member.memberAccount");
	$member_account = $member_account['data'];

	// 会员等级信息
	$member_level = api("System.Member.memberLevel", ['level_id' => $member_info['member_level']]);
	$member_level = $member_level['data'];

    // 累计佣金
	$member_all_salary = api("System.Member.memberAllSalary");
    $member_all_salary = $member_all_salary['data'];

	//待审核金额
	$member_withdraw_account = api("System.Member.withdrawAccount");
	$member_withdraw_account = $member_withdraw_account['data'];

	if(addon_is_exit('NsMemberSign')){
		$isSign = api("NsMemberSign.MemberSign.isSignIn");
		$isSign = $isSign['data'];
	}

	$coupon_count = api("System.Member.couponNum");
	$coupon_count = $coupon_count['data'];

	$wapEntrance = api("System.Config.wapEntrance");
	$wapEntrance = $wapEntrance['data'];
{/php}
<div class="wap-floating">
	<a class="close-wrap" href="javascript:;"><img src="WAP_IMG/index/floating_layer_close.png"></a>
	<a class="img-wrap" href="{$wap_floating['nav_url']}"><img src="{:__IMG($wap_floating.nav_icon)}" alt="浮层图片" /></a>
</div>
<div class="password-div">
	<label for="password" class="password-lable">
		<ul>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
			<li></li>
		</ul>
		<input id="password" type="password" name="password" maxlength="6">
	</label>
</div>


<script>
	$(".password-div input").on("input",function(e){ //标签为password-div下的input添加oninput事件
		var number = 6;   //定义输入最大值
		var pw = $("input[name = 'password']").val(); //定义pw为name是password的input框的输入值
		var list = $(".password-div ul li");  //定义list是li
		for(var i = 0; i < number ; i++){    //for循环遍历将·放入li标签
			if(pw[i]){
				$(list[i]).text("·");
			}else{
				$(list[i]).text("");
			};
		};
	});
	$(".password-div ul").click(function(){
		$("input[name = 'password']").val("");
		$("#password").focus();
		$(".password-div ul li").text("");
	});

</script>
{/block}